﻿using System.Collections.Generic;

using FakeItEasy;

using NewModel.Accounting.Persistence;
using NewModel.Shared.Utils;
using NewModel.UnitTests.Accounting.Persistence._Samples_;

using NUnit.Framework;

namespace NewModel.UnitTests.Accounting.Persistence
{
    [TestFixture]
    public sealed class TestTransactionRegistrant
    {
        TransactionRegistrant mUnderTest;
        ITotalsCalculator mTotalsCalculator;
        IApplicator mApplicator;
        IBatchOperations mBatchOperations;

        [SetUp]
        public void SetUp()
        {
            mTotalsCalculator = A.Fake<ITotalsCalculator>();
            mApplicator = A.Fake<IApplicator>();
            mBatchOperations = A.Fake<IBatchOperations>();
            mUnderTest = new TransactionRegistrant(mTotalsCalculator, mApplicator, mBatchOperations);
        }

         [Test]
        public void AddTransaction()
        {
            mUnderTest.AddTransaction(new List<Batch>(), Sample.ExpenseTransaction);
        }
    }
}